package com.atguigu.test.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author zp
 * @version 1.0
 * @description: @Order 注解的演示
 * @date 2022/9/7 19:10
 */
@Component
@Aspect
@Order(2)
@Slf4j
public class CatProxyTow {

    /**
     * @description:  前置通知
     * @author zp
     * @date: 2022/9/7 18:51
     */
    @Before(value="execution(* com.atguigu.test.aop.Cat.add(..))")
    public void before(){
        log.info("CatProxyTow 执行了before通知");
    }
}
